﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Longtop.Web.Models.Case>" %>
<%=Html.Script("~/scripts/ckeditor/ckeditor.js")%>
<%=Html.Script("~/scripts/ckeditor/adapters/jquery.js") %>
<%=Html.Script("~/scripts/ckfinder/ckfinder.js")%>
<%=Html.TextAreaFor(m=>m.Content,10,80,new{ Class="jquery_ckeditor" }) %>

<script type="text/javascript">
    //<![CDATA[
    $(function() {
        //        var config = {
        //            toolbar:
        //		[
        //			['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
        //			['UIColor']
        //		]
        //        };

        // Initialize the editor.
        // Callback function can be passed and executed after full instance creation.
        //$('.jquery_ckeditor').ckeditor();
        CKFinder.SetupCKEditor($('.jquery_ckeditor').ckeditor().ckeditorGet(), '<%=Url.Content("~/scripts/ckfinder/") %>')
    });

    //]]>
</script>

